package com.team.arms.service_management_before.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.service_management_before.domain.ClassInformationSheet;
import com.team.arms.service_management_before.domain.dto.ClassInformationSheetDto;
import com.team.arms.service_management_before.service.ClassInformationSheetService;
import com.team.arms.service_management_before.mapper.ClassInformationSheetMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ClassInformationSheetServiceImpl extends ServiceImpl<ClassInformationSheetMapper, ClassInformationSheet>
    implements ClassInformationSheetService{

    @Autowired
    private ClassInformationSheetMapper classInformationSheetMapper;

    @Override
    public ClassInformationSheet selectById(String id) {
        return classInformationSheetMapper.selectByClassId(id);
    }

    @Override
    public int insertAll(ClassInformationSheet classInformationSheet) {
        return classInformationSheetMapper.insertAll(classInformationSheet);
    }

    @Override
    public int deleteByListInformationIds(List<String> id) {
        return classInformationSheetMapper.deleteBatchIds(id);
    }

    @Override
    public int deleteByListInformationId(String id) {
        return classInformationSheetMapper.deleteById(id);
    }

    @Override
    public List<ClassInformationSheet> selectClassInformationSheet(ClassInformationSheetDto classInformationSheetDto) {
        return classInformationSheetMapper.selectClassInformationSheet(classInformationSheetDto);
    }

    @Override
    public List<ClassInformationSheet> selectByFiled(String field, String content) {
        return classInformationSheetMapper.selectByFiled(field, content);
    }
}




